@layout("/common/_container.html"){
<link rel="stylesheet" href="${ctxPath}/static/layui/css/layui.css" media="all">
<style>
    .layui-form-label {
        min-width: 100px;
    }
</style>
<form class="layui-form" oncommit>
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 100px;">广告标题</label>
        <div class="layui-input-block">
            <input type="text" id="adName" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">广告位置</label>
        <div class="layui-input-block">
            <select id="locType" lay-verify="required">
                <option value="">请选择广告位置</option>
                <option value="1">banner</option>
                <option value="2">开屏</option>
                <option value="3">弹出</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">广告分类</label>
        <div class="layui-input-block">
            <select id="adType" lay-verify="required">
                <option value="">请选择广告分类</option>
                <option value="1">活动推广</option>
                <option value="2">用户留存</option>
                <option value="3">上新通知</option>
                <option value="4">系统维护</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">目标用户</label>
        <div class="layui-input-block">
            <input type="checkbox" lay-filter="ch" name="0" title="免费用户">
            <input type="checkbox" lay-filter="ch" name="1" title="vip用户">
            <input type="checkbox" lay-filter="ch" name="2" title="专线用户">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">跳转地址</label>
        <div class="layui-input-block">
            <input id="jumpUrl" type="text" name="jumpUrl" placeholder="请输入跳转URL" lay-verify="empurl" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">广告图片</label>
        <div class="layui-input-block">
            <div class="layui-upload">
                <button type="button" class="layui-btn" id="imgUploader">上传图片</button>
                <div class="layui-upload-list">
                    <img class="layui-upload-img" id="demo1">
                </div>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">banner顺序</label>
        <div class="layui-input-block">
            <input type="text" id="sort" name="banner_sort" required  lay-verify="required" placeholder="banner位广告请输入位置顺序" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开始时间</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" id="startTime" placeholder="yyyy-MM-dd HH:mm:ss">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">结束时间</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" id="endTime" placeholder="yyyy-MM-dd HH:mm:ss">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="adInfo">立即提交</button>
        </div>
    </div>
</form>
<script src="${ctxPath}/static/layui/layui.js" charset="utf-8"></script>
<script src="${ctxPath}/static/modular/advertisement/appAds/appAds_info.js"></script>
@}
